## Primitive RS codes. Construction and examples

from PyM import *

# def PRS(K,k):
#     n = cardinal(K)-1
#     alpha = primitive_root(K) 
#     C = BCH(alpha,n-k+1)
#     a = a_(C)
#     C._G = vandermonde(a,k)
#     return C   
    
# Examples 1

C = PRS(Zn(11),5)

show( H_(C))

show( K_(C))

# Examples 2

show( G_(C))

show( G_(C) * transpose(H_(C)) )
